package cn.itsource.user.controller;

import cn.itsource.user.domain.dto.UserDTO;
import cn.itsource.utli.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/register")
    public AjaxResult register(@RequestBody UserDTO userDTO){
        System.out.println(userDTO);
        return  AjaxResult.me();
    }


}
